<template>
    <div class="container">
        <div class="item" @click="_goSuggestions">
            <span>意见与反馈</span>
            <i class='icon mt-arrow-right-o'></i>
        </div>
        <div class="item" @click="_goCommonProblem">
            <span>常见问题</span>
            <i class='icon mt-arrow-right-o'></i>
        </div>
        <!--<web-view class="webview" :src="url"></web-view>-->
    </div>
</template>

<script>
    export default {
        data() {
            return {
                url: 'https://i.waimai.meituan.com/node/account/help?isMini=1',
                // url: 'https://i.waimai.meituan.com/node/account/faq'
            }
        },
        methods: {
            /**
             * 跳转意见反馈页面
             * @private
             */
            _goSuggestions() {
                wx.navigateTo({url: '/pages/suggest/main'})
            },
            /**
             * 跳转常见问题
             * @private
             */
            _goCommonProblem() {
                wx.navigateTo({url: '/pages/CommonProblem/main'})
            },
        }
    }
</script>

<style lang="scss" scoped>
    .container {
        margin-top: 10rpx;
        .webview {
            display: flex;
            width: 100%;
            height: 100%;
        }
        .item {
            display: flex;
            height: 88rpx;
            padding: 0 30rpx;
            margin-bottom: 2rpx;
            align-items: center;
            justify-content: space-between;
            font-size: 28rpx;
            background-color: #ffffff;
            color: #2f2f2f;
            .mt-arrow-right-o {
                color: #cccccc;
            }
        }
    }
</style>
